package mutsumimod.patches;

import com.evacipated.cardcrawl.modthespire.lib.*;
import com.evacipated.cardcrawl.modthespire.patcher.PatchingException;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.rooms.AbstractRoom;
import javassist.CannotCompileException;
import javassist.CtBehavior;
import mutsumimod.powers.HeartWallPower;

import java.util.ArrayList;


public class HeartWallPatch {

    @SpirePatch(
            clz = AbstractRoom.class,
            method = "endTurn"
    )
    public static class AbstractCardRenderGrowPatch {

        @SpirePostfixPatch
        public static void postfix(AbstractRoom __instance) {
            if(AbstractDungeon.player.hasPower(HeartWallPower.POWER_ID)) {
                HeartWallPower power=(HeartWallPower)AbstractDungeon.player.getPower(HeartWallPower.POWER_ID);
                power.afterEndOfTurn();
            }
        }
    }




}
